package com.wrupple.vegetate.client.event;

public class VegetateRequestFailureEvent extends VegetateEvent {
	
	private final Throwable exception;
	
	public VegetateRequestFailureEvent(int requestNumber, String channelId,
			Throwable exception) {
		super(requestNumber, channelId);
		this.exception = exception;
	}

	@Override
	protected void dispatch(VegetateEventHandler handler) {
		handler.onRequestFailed(this);
	}

	public Throwable getException() {
		return exception;
	}

}
